
package orm.jpa.first.model.sixweek;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;


@Entity(name = "Address")
public class Address {
	
	@Id
	@Column(name = "AddressID")
	private Long addressId;
	
	@Column(name = "city")
	private String city;
	
	public Address() {
		super();
	}
	
	public Long getAddressId() {
		return addressId;
	}

	public void setAddressId(Long addressId) {
		this.addressId = addressId;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("Address [addressId=").append(addressId)
				.append(", city=").append(city).append("]");
		return builder.toString();
	}
}
